package com.duo.vo;

import com.duo.entity.SetmealDish;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class SetmealVO implements Serializable {

    /**
     * 套餐id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long setmealId;

    /**
     * 分类id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long categoryId;

    /**
     * 套餐名称
     */
    private String setmealName;

    /**
     * 描述信息
     */
    private String description;

    /**
     * 套餐价格
     */
    private BigDecimal price;

    /**
     * 图片
     */
    private String image;

    /**
     * 套餐和菜品的关联关系
     */
    private List<SetmealDish> setmealDishes;

}
